package com.wv.common.result;

// 异常信息枚举类
public enum HttpCodeEnum {
    ADD_ERROR(403, "添加失败"),
    DElETE_ERROR(403, "删除失败"),
    ERROR(500, "系统错误"),
    LOGIN_CODE_ERROR(500, "验证码错误"),
    LOGIN_ERROR(500, "登录错误"),
    MESSAGE_NOT(202, "未收到信息"),
    NOT_LOGIN(201, "未登录"),
    PARAMS_ERROR(406, "参数错误"),
    SUCCESS(200, "操作成功"),
    UPDATE_ERROR(403, "修改失败"),
    USER_EXISTENCE(401, "用户不存在"),
    USER_STATES_ERROR(405, "账号已锁定"),
    VISIT_PROTECTED(500, "正在访问受保护的资源"),
    PERMISSION_ERROR(500,"权限不足");

    int code;
    String msg;

    HttpCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
